package panda.client.ui.observable;

import panda.client.engine.Observable;

public class ObservableLifeTotal extends Observable {
	int life;
	String owner;
	
	public ObservableLifeTotal(String owner) {
		life = 0;
		this.owner = owner;
	}
	
	public String getOwnerName() {
		return owner;
	}
	
	public int getLifeTotal() {
		return life;
	}
	
	public void setLifeTotal(int total) {
		life = total;
		
		setChanged();
		notifyObservers();
	}
	
	public String toString() {
		return owner + ": " + life; 
	}
}